<%--
  Created by IntelliJ IDEA.
  User: jamesmac
  Date: 2020/8/14
  Time: 15:23
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE >
<html>
    <head>
        <title>测试springmvc中上传的实现</title>
    </head>
    <body>
        <h4>单文件上传</h4>
        <!-- 上传文件的表单类型必须是 enctype="multipart/form-data" -->
        <form action="file/upload" method="post" enctype="multipart/form-data">
            <!-- multiple 表示可多选上传的文件 -->
            <input type="file" name="file"/>
            <br><br>
            <input type="submit" value="上传"/>
        </form>
        <br>
        <hr>

        <h4>多文件上传</h4>
        <form action="file/mutiple/upload" method="post" enctype="multipart/form-data">

            <!-- multiple 表示可多选上传的文件 -->
            <input type="file" name="file" multiple/>
            <br><br>
            <input type="submit" value="上传"/>
        </form>
    </body>
</html>


